home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: Re: RANDOM NUMBER GENERATOR
- Date: Thu, 04 Jan 96 00:07:56 GMT
- Organization: none
- Message-ID: <820714076snz@genesis.demon.co.uk>
- References: <ABg4lwmmK4@lh.ioffe.rssi.ru> <4cf1d2$1ts@oldfart.ecl.wustl.edu>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4cf1d2$1ts@oldfart.ecl.wustl.edu>
- kln@news.hpn.org "Klaus L. Nordstrom" writes:
-
- >If one uses <stdlib.h>, does one not automatically get access to
- >srand48() and drand48()? These routines generates good quality random
- >numbers with long periodicities.
-
- No, they are standard Unix (XPG) functions but they are not standard C
- functions. For an ANSI conforming implementation they must *not* be
- defined in stdlib.h.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-